<!DOCTYPE html>
<!-- saved from url=(0031)https://qianbao.qukuai.com/send -->
<html lang="zh-cn"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>快钱包-付款</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="format-detection" content="telephone=yes">
<meta name="msapplication-tap-highlight" content="no">
<meta name="keywords" content="快钱包,比特币钱包,莱特币钱包,多重签名,零确认,即时确认">
<meta name="description" content="比特币独特的多重签名技术,快钱包实现了安全与快速的完美结合,全球首个推行转账免费的比特币钱包。">
<link rel="shortcut icon" href="https://qianbao.qukuai.com/static/images/favicon.ico?v=6e6597dd25fadfbb7f7295c01d185b62">
<link rel="apple-touch-icon" href="https://qianbao.qukuai.com/static/images/favicon.ico?v=6e6597dd25fadfbb7f7295c01d185b62">
<link rel="stylesheet" href="https://qianbao.qukuai.com/static/css/bootstrap.css?v=34fedf679440c38e9494e108664f4979">
<link rel="stylesheet" href="https://qianbao.qukuai.com/static/css/base.css?v=6fa065cc16e9800dcee73563140cc92a">
<script async="" src="./快钱包-付款_files/analytics.js"></script><script src="./快钱包-付款_files/jquery1.11.min.js"></script>
<!--[if lt IE 9]>
<script src="/static/js/html5shiv.min.js?v=bc0679a1f805567fd478cbc0c845c075"></script>
<script src="/static/js/respond.min.js?v=44ccd9c8f8438737612f35923c12135c"></script>
<![endif]-->
<script src="./快钱包-付款_files/bootstrap.min.js"></script>
<script src="./快钱包-付款_files/l10n.min.js"></script>
<script src="./快钱包-付款_files/common.js"></script>
<script src="./快钱包-付款_files/language.js"></script>
<style type="text/css" adt="123"></style><script>if(!document.URL.match(new RegExp('^http:\\/\\/(v|music)\\.baidu\\.com'))){
(function() {
    Function.prototype.bind = function() {
        var fn = this, args = Array.prototype.slice.call(arguments), obj = args.shift();
        return function() {
            return fn.apply(obj, args.concat(Array.prototype.slice.call(arguments)));
        };
    };
    function A() {}
    A.prototype = {
        rules: {
            'youku_loader': {
                'find': /^http:\/\/static\.youku\.com\/.*(loader|player_.*)(_taobao)?\.swf/,
                'replace': 'http://swf.adtchrome.com/loader.swf'
            },
            'youku_out': {
                'find': /^http:\/\/player\.youku\.com\/player\.php\/.*sid\/(.*)/,
                'replace': 'http://swf.adtchrome.com/loader.swf?VideoIDS=$1'
            },
            'pps_pps': {
                'find': /^http:\/\/www\.iqiyi\.com\/player\/cupid\/common\/pps_flvplay_s\.swf/,
                'replace': 'http://swf.adtchrome.com/pps_20140420.swf'
            },
            'iqiyi_1': {
                'find': /^http:\/\/www\.iqiyi\.com\/player\/cupid\/common\/.+\.swf$/,
                'replace': 'http://swf.adtchrome.com/iqiyi_20140624.swf'
            },
            'iqiyi_2': {
                'find': /^http:\/\/www\.iqiyi\.com\/common\/flashplayer\/\d+\/.+\.swf$/,
                'replace': 'http://swf.adtchrome.com/iqiyi_20140624.swf'
            },
            'ku6': {
                'find': /^http:\/\/player\.ku6cdn\.com\/default\/.*\/\d+\/(v|player|loader)\.swf/,
                'replace': 'http://swf.adtchrome.com/ku6_20140420.swf'
            },
            'ku6_topic': {
                'find': /^http:\/\/player\.ku6\.com\/inside\/(.*)\/v\.swf/,
                'replace': 'http://swf.adtchrome.com/ku6_20140420.swf?vid=$1'
            },
            'sohu': {
                'find': /^http:\/\/tv\.sohu\.com\/upload\/swf(\/p2p)?\/\d+\/Main\.swf/,
                'replace': 'http://swf.adtchrome.com/sohu_20141215.swf'
            },
            'sohu_share': {
                'find': /^http:\/\/share\.vrs\.sohu\.com\/my\/v\.swf&/,
                'replace': 'http://swf.adtchrome.com/sohu_20140917.swf?'
            },
            'sohu_sogou' : {
                'find': /^http:\/\/share\.vrs\.sohu\.com\/(\d+)\/v\.swf/,
                'replace': 'http://swf.adtchrome.com/sohu_20140917.swf?vid=$1'
            },
            'letv': {
                'find': /^http:\/\/player\.letvcdn\.com\/p\/.*\/newplayer\/LetvPlayer\.swf/,
                'replace': 'http://swf.adtchrome.com/letv_20141117.swf'
            },
            'letv_topic': {
                'find': /^http:\/\/player\.hz\.letv\.com\/hzplayer\.swf\/v_list=zhuanti/,
                'replace': 'http://swf.adtchrome.com/letv_20141117.swf'
            },
            'letv_duowan': {
                'find': /^http:\/\/assets\.dwstatic\.com\/video\/vpp\.swf/,
                'replace': 'http://yuntv.letv.com/bcloud.swf'
            }
        },
        _done: null,
        get done() {
            if(!this._done) {
                this._done = new Array();
            }
            return this._done;
        },
        addAnimations: function() {
            var style = document.createElement('style');
            style.type = 'text/css';
            style.innerHTML = 'object,embed{\
                -webkit-animation-duration:.001s;-webkit-animation-name:playerInserted;\
                -ms-animation-duration:.001s;-ms-animation-name:playerInserted;\
                -o-animation-duration:.001s;-o-animation-name:playerInserted;\
                animation-duration:.001s;animation-name:playerInserted;}\
                @-webkit-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}\
                @-ms-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}\
                @-o-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}\
                @keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}';
            document.getElementsByTagName('head')[0].appendChild(style);
        },
        animationsHandler: function(e) {
            if(e.animationName === 'playerInserted') {
                this.replace(e.target);
            }
        },
        replace: function(elem) {
            if(this.done.indexOf(elem) != -1) return;
            this.done.push(elem);
            var player = elem.data || elem.src;
            if(!player) return;
            var i, find, replace = false;
            for(i in this.rules) {
                find = this.rules[i]['find'];
                if(find.test(player)) {
                    replace = this.rules[i]['replace'];
                    if('function' === typeof this.rules[i]['preHandle']) {
                        this.rules[i]['preHandle'].bind(this, elem, find, replace, player)();
                    }else{
                        this.reallyReplace.bind(this, elem, find, replace)();
                    }
                    break;
                }
            }
        },
        reallyReplace: function(elem, find, replace) {
            elem.data && (elem.data = elem.data.replace(find, replace)) || elem.src && ((elem.src = elem.src.replace(find, replace)) && (elem.style.display = 'block'));
            var b = elem.querySelector("param[name='movie']");
            this.reloadPlugin(elem);
        },
        reloadPlugin: function(elem) {
            var nextSibling = elem.nextSibling;
            var parentNode = elem.parentNode;
            parentNode.removeChild(elem);
            var newElem = elem.cloneNode(true);
            this.done.push(newElem);
            if(nextSibling) {
                parentNode.insertBefore(newElem, nextSibling);
            } else {
                parentNode.appendChild(newElem);
            }
        },
        init: function() {
            var handler = this.animationsHandler.bind(this);
            document.body.addEventListener('webkitAnimationStart', handler, false);
            document.body.addEventListener('msAnimationStart', handler, false);
            document.body.addEventListener('oAnimationStart', handler, false);
            document.body.addEventListener('animationstart', handler, false);
            this.addAnimations();
        }
    };
    new A().init();
})();
}
// 20140730
(function cnbeta() {
    if (document.URL.indexOf('cnbeta.com') >= 0) {
        var elms = document.body.querySelectorAll("p>embed");
        Array.prototype.forEach.call(elms, function(elm) {
            elm.style.marginLeft = "0px";
        });
    }
})();
// 20140730
(function kill_baidu() {
    if (document.URL.indexOf('baidu.com') >= 0) {
        var elms = document.body.querySelectorAll("#content_left>div[style='display:block !important'], #content_left>table[style='display:table !important']");
        Array.prototype.forEach.call(elms, function(elm) {
            elm.removeAttribute("style");
        });
    }
    window.setTimeout(kill_baidu, 400);
})();
// 20140928
(function v_baidu() {
    if (document.URL.match(/http:\/\/baidu.*fr=/)) {
        var child = document.body.querySelector('div.bd>script');
        child.parentNode.removeChild(child);
        advTimer.last = 1;
        advTimer.cur = 1;
        advTimer.onbeforestop();
    }
})();
// 20140922
(function kill_360() {
    if (document.URL.indexOf('so.com') >= 0) {
        document.getElementById("e_idea_pp").style.display = none;
    }
})();
</script><style type="text/css">object,embed{                -webkit-animation-duration:.001s;-webkit-animation-name:playerInserted;                -ms-animation-duration:.001s;-ms-animation-name:playerInserted;                -o-animation-duration:.001s;-o-animation-name:playerInserted;                animation-duration:.001s;animation-name:playerInserted;}                @-webkit-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}                @-ms-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}                @-o-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}                @keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}</style></head>
<body style="">

<div class="navbar navbar-default navbar-static-top" id="top" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#phone">
<span class="sr-only">快钱包</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="phone-nav visible-xs">
<div class="mini-logo-1"><a href="https://qianbao.qukuai.com/"><img src="./快钱包-付款_files/big-logo.png"></a></div>
</div>
</div>
<div class="navbar-collapse collapse" id="phone">
<ul class="nav navbar-nav visible-xs">
<li><div class="username">您好, <a href="https://qianbao.qukuai.com/home">bitcoinReaver</a> </div></li>

<li><a href="https://qianbao.qukuai.com/home"><div class="ico qbsy">钱包首页</div></a></li>
<li class="active"><a href="./快钱包-付款_files/快钱包-付款.htm"><div class="ico fk">付款</div></a></li>
<li><a href="https://qianbao.qukuai.com/recv"><div class="ico sk">收款</div></a></li>
<li><a href="https://qianbao.qukuai.com/trans"><div class="ico jy">交易记录</div></a></li>
<li><a href="https://qianbao.qukuai.com/security"><div class="ico aq">安全中心</div></a></li>
<li><a href="https://qianbao.qukuai.com/logout"><div class="ico tc">退出</div></a></li>
<li class="qukuai"><a href="http://qukuai.com/">区块</a></li>

</ul>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav nav-left" id="nav-left">
<li class="mini-logo"><a href="http://www.qukuai.com/"><img src="./快钱包-付款_files/qukuai_logo.png">&nbsp;</a></li>
<li class="qukuai"><a href="http://www.qukuai.com/">区块</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><div class="username">您好, <a href="https://qianbao.qukuai.com/home">bitcoinReaver</a> </div></li>
<li class="quit"><a href="https://qianbao.qukuai.com/logout"><div class="quit-img"> </div></a></li>
</ul>
</div>
</div>

<div class="container hidden-xs" id="logo">
<div class="row">
<div class="logo"><a href="https://qianbao.qukuai.com/"><img src="./快钱包-付款_files/walle_logo_s.png"></a></div>
<div class="refresh"><a href="javascript:;"><img src="./快钱包-付款_files/sx2.png"></a></div>
</div>
</div>


<div class="container">
<div class="row main">

<div class="col-xs-3 hidden-xs index-left">
<ul class="nav nav-pills nav-stacked">
<li><a href="https://qianbao.qukuai.com/home"><div class="ico qbsy">钱包首页</div></a></li>
<li class="active"><a href="./快钱包-付款_files/快钱包-付款.htm"><div class="ico fk">付款</div></a></li>
<li><a href="https://qianbao.qukuai.com/recv"><div class="ico sk">收款</div></a></li>
<li><a href="https://qianbao.qukuai.com/trans"><div class="ico jy">交易记录</div></a></li>
<li><a href="https://qianbao.qukuai.com/contact"><div class="ico dzb">地址本</div></a></li>
<li><a href="https://qianbao.qukuai.com/security"><div class="ico aq">安全中心</div></a></li>
</ul>
<div class="help center-block">









</div>
</div>


<div class="col-xs-12 col-md-9 index-right">
<div class="col-xs-12 col-md-12" id="r-mian">
<h1 class="page-title">付款</h1>
<p class="cue"></p>
<div id="send_error"></div>
<div class="coin-type">
<a href="javascript:;" class="active" data-coin="btc">比特币</a><br class="visible-xs">
<a href="javascript:;" data-coin="ltc">莱特币</a>
</div>
<div class="input-box r_box">
<div class="row">
<form role="form" class="sendform">
<div class="form-group">
<div class="col-sm-12 lb"><label for="from">从</label></div>
<div class="col-sm-7">
<select name="myaddr" id="myaddr" class="myaddr"><option value="">任意地址 - 总额 0 BTC</option></select>
</div>
<div class="col-sm-12 "><p class="help-block red"></p></div>
</div>
<div class="form-group">
<div class="col-sm-12 lb"><label for="receive">发送至</label></div>
<div class="col-sm-7 r_box"><input type="text" class="form-control address Validform_error" name="receive" id="address" list="addr_list" errormsg="请正确输入收款地址" datatype="addr" nullmsg="请输入收款地址" placeholder="收款地址" value=""><datalist id="addr_list"></datalist>
<div class="right_box" unselectable="on"><span class="raddr"></span><input type="text" id="tmpinput"></div>
<div class="down_box" style="display: none;"></div>
</div>
<div class="col-sm-12 err"><p class="help-block red Validform_checktip Validform_wrong" id="receive_error">请输入收款地址</p></div>
</div>
<div class="form-group">
<div class="col-sm-12 lb"><label for="amount">金额</label></div>
<div class="col-sm-4"><input type="text" class="form-control bg_btc Validform_error" id="amount" errormsg="请正确输入金额" datatype="amount" nullmsg="请输入金额" placeholder="0.00"></div> <div class="col-sm-8 rmb">≈ CNY <span id="int">0</span>.<small><span id="floatnum">00</span></small></div>
<div class="col-sm-12 err"><p class="help-block red" id="amount_error">请正确输入金额</p></div>
</div>
<div class="form-group">
<div class="col-sm-12 lb"><label for="immediate">付款方式</label></div>
<div class="col-sm-12">
<input type="checkbox" name="immediate" id="immediate" value="immediate"> <span class="jishi">即时到账</span><span class="js-tis"></span>
</div>
<div class="col-sm-12"><p class="help-block red" id="type_error"></p><p class="help-block type_tis" id="type_tis"></p></div>
</div>
<div class="form-group">
<div class="col-sm-12 lb"><label for="remark">备注</label></div>
<div class="col-sm-7"><textarea class="form-control" id="remark" ignore="ignore" errormsg="备注长度超出45字范围" datatype="*45" placeholder="选填，45个字以内。（提示：备注只有自己才能看到，不会在对方账户或区块链上出现）"></textarea></div>
<div class="col-sm-12 "><p class="help-block red"></p></div>
</div>
<div class="col-sm-12 mt5"><a href="javascript:;" class="btn btn-orange btn-xs" id="send">付款</a></div>
<input type="hidden" name="_xsrf" value="2d600e87d1944e30b681c151a2bf10b3">
</form>
</div>
<div class="contact_dis hidden-xs"><img src="./快钱包-付款_files/dis_1.png"></div>
<div class="contact_box hidden-xs" data-dis="open">
<div class="contact_title">地址本</div>
<div id="contacts"><div class="nocontact">暂无联系人</div></div>
</div>
</div>
</div>
</div>
<div class="add-box" id="paycheck" style="display:none;">
<div class="blank13">&nbsp;</div>
<div class="input-box">
<div class="row">
<div class="form-group">
<div class="col-sm-12 lb"><label for="passwd">验证支付密码</label></div>
<div class="col-sm-6">
<input type="password" class="form-control passwd" id="passwd" placeholder="请输入支付密码">
</div>
<div class="col-sm-12 ">
<p class="help-block red" id="sign_error"></p>
</div>
</div>
<div class="clearfix"></div>
<div id="check_box">
</div>
<div class="form-group">
<input type="hidden" name="_xsrf" value="2d600e87d1944e30b681c151a2bf10b3">
<div class="col-sm-12 mt3"><a href="javascript:;" class="btn btn-orange btn-xs" data-loading-text="正在加载..." id="sign">确定</a></div>
<p class="help-block red"></p>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
<div id="paygif" style="display:none">
<img src="./快钱包-付款_files/paying.gif">
</div>
<div class="add-box" id="payendok" style="display:none;">
<div class="blank14">&nbsp;</div>
<div><span class="yousend">您已发送</span> <span id="send_coin">0.0001</span> <span id="send_type">BTC</span> <span class="ash">≈ <span id="send_cny">9.80</span> CNY</span> <span class="yousend">至</span></div>
<div class="recvaddr" id="send_addr">7Nkb8hFaZoMjosRzBsq85V4KQGecaLz1K <span class="yousend">地址</span></div>
<div class="qk-tit">去区块链查询</div>
<div class="go_qukuai_tx"><a href="https://qianbao.qukuai.com/send#" class="blue-a1" target="_blank" id="tx_a"></a></div>
<div class="blank12">&nbsp;</div>
<div class="input-box">
<div class="row">
<div class="form-group">
<div class="col-sm-12"><a href="javascript:;" class="btn btn-orange btn-xs" id="ok_btn">确定</a></div>
</div>
</div>
</div>
</div>
<div class="add-box" id="payenderror" style="display:none;">
<div class="blank14">&nbsp;</div>
<div>您的付款未成功，请稍后重试！</div>
<div class="blank12">&nbsp;</div>
<div class="input-box">
<div class="row">
<div class="form-group">
<div class="col-sm-12"><a href="javascript:;" class="btn btn-orange btn-xs" id="error_btn">确定</a></div>
</div>
</div>
</div>
</div>
<div class="add-box" id="checkinfo" style="display:none;">
<div class="blank14">&nbsp;</div>
<div class="info_box">
<div class="info_box_left">发款至</div>
<div class="info_box_right" id="dialog_addr"> 7Nkb8hFaZoMjosRzBsq85V4KQGecaLz1K</div>
<div class="info_box_left">币种</div>
<div class="info_box_right" id="dialog_coin"> 比特币</div>
<div class="info_box_left">金额</div>
<div class="info_box_right"> <span><span id="dialog_coin_num">0.0001</span> <span id="coin_type">BTC</span></span> <span class="ash">≈ <span id="dialog_cny_num">9.80</span> CNY</span></div>
<div class="info_box_left">手续费</div>
<div class="info_box_right"> <span id="dialog_free">免费</span></div>
<div class="info_box_left" id="paytype_l">付款方式</div>
<div class="info_box_right" id="paytype_r"> <span id="dialog_paytype"></span></div>
<div class="info_box_left">备注</div>
<div class="info_box_right bemark" id="dialog_remark"> smsmsmsms</div>
</div>
<div class="input-box">
<div class="row">
<div class="form-group">
<div class="col-sm-12 mt4"><a href="javascript:;" class="btn btn-orange btn-xs" id="pay">确认付款</a> <a href="javascript:;" class="btn btn-default" id="cancel">取消</a></div>
</div>
</div>
</div>
</div>
<div id="check_input" style="display:none">
<div class="form-group check_type">
<div class="blank8">&nbsp;</div>
<div class="col-sm-12 "><button class="btn btn-default select" type="button" style="margin-right:14px;" id="phone">验证手机</button><button id="google" class="btn btn-default" type="button">验证Google验证器</button></div>
</div>
<div class="blank11">&nbsp;</div>
<div class="check google_son show" id="phone_son">
<div class="form-group" id="pay_google">
<div class="col-sm-12"><label for="phone_dialog">短信验证码</label></div>
<div class="col-sm-6 mb" id="check_message"><button class="btn btn-default pay_google" id="phone_dialog" type="button"><img src="./快钱包-付款_files/h_phone.png"> 点击免费获得</button></div>
<div class="col-sm-12 "><p class="help-block red" id="phone_error"></p></div>
</div>
</div>
<div class="check google_son hidden" id="google_son">
<div class="form-group">
<div class="col-sm-12"><label for="google_dialog">Google动态密码</label></div>
<div class="col-sm-6">
<input type="text" class="form-control dialog_check_width" id="google_dialog" placeholder="输入Google验证器显示的6位数字">
</div>
<div class="col-sm-12 "><p class="help-block red" id="google_error"></p></div>
</div>
</div>
</div>
</div>
<script src="./快钱包-付款_files/bootstrap-dialog.min.js"></script>
<script src="./快钱包-付款_files/aes.js"></script>
<script src="./快钱包-付款_files/mode-cfb-min.js"></script>
<script src="./快钱包-付款_files/pad-iso10126-min.js"></script>
<script src="./快钱包-付款_files/bitcoinjs-min.js"></script>
<script src="./快钱包-付款_files/quickwallet.js"></script>
<script src="./快钱包-付款_files/send.js"></script>
<script src="./快钱包-付款_files/Validform_v5.3.2_min.js"></script>
<script>
var form = $(".sendform").Validform({
tiptype:function(msg,o,cssctl){
if(!o.obj.is("form")){
var objtip=o.obj.parent().parent().find(".help-block");
if(o.obj.attr('id') != 'amount'){
cssctl(objtip,o.type);
objtip.text(msg);
}
if(o.type==2){
objtip.text('');
}
}
},
datatype:{
"ns6-30": /^(?=.*\d.*)(?=.*[a-zA-Z].*).{6,30}$/ ,
"*6-30":/^[\w\W]{6,30}$/,
"*30":/^.{2,30}$/,
"*45":/^.{1,45}$/,
"z2-4" : /^[\u4E00-\u9FA5\uf900-\ufa2d]{2,4}$/,
"float":/^(\d+(\.\d*)?|\.\d+)?$/,
"amount":function(){
if(check_amount()){
}else{
return false;
}
},
"addr":function(){
var ct = $(".coin-type .active").attr("data-coin");
var addr = $.trim($('#address').val());
if(addr == ''){
return false;
}
var _xsrf = getCookie("_xsrf");
var s = false;
try {
var addr = new Bitcoin.Address(addr);
if(validate_address(addr, ct))
{
return true;
}
} catch(err) {
return false;
}
return false;
}
}
});
function check_amount(){
var ct = $(".coin-type .active").attr("data-coin");
var total_amount = $('#amount').val();
if(trim(total_amount) == '' || total_amount == 0){
$('#amount_error').html("请输入金额");
$('#immediate').prop("checked",false)
return false;
}
if(!isfloat(total_amount)){
$('#amount_error').html("请正确输入金额");
$('#immediate').prop("checked",false)
return false;
}
var myaddr = $("#myaddr").val();
var data = getData();
userData = $.parseJSON(data);
var sum = 0;
var u_cf = 0;
var cf = 0;
if(userData != null)
{
$.each(userData.addrs, function(i, item){
if(myaddr == ""){
var tx = item.tx[ct]["cf"];
sum = sum + getCoinSum(tx);
sum =sum + getCoinSum(item.tx[ct]["u_cf"]);
}else{
if(item.addr == myaddr){
var tx = item.tx[ct]["cf"];
sum = sum + getCoinSum(tx);
sum =sum + getCoinSum(item.tx[ct]["u_cf"]);
}
}
})
}
cong = parseInt(total_amount*100000000);
if(ct == 'btc' && cong < 1000){
$('#amount_error').html("输入的比特币金额过小！");
$('#immediate').prop("checked",false)
return false;
}
if(ct == 'ltc' && cong < 100000){
$('#amount_error').html("输入的莱特币金额过小！");
$('#immediate').prop("checked",false)
return false;
}
if(userData.free_fee !=null && userData.free_fee[ct]){
if( cong > sum){
$('#amount_error').html("余额不足以支付本次交易！");
$('#immediate').prop("checked",false)
return false;
}
}
else if( cong >= sum){
$('#amount_error').html("余额不足以支付本次交易！");
$('#immediate').prop("checked",false)
return false;
}
return true;
}
$(document).ready(function(){
$(".coin-type a").click(function (){
var coin = $(this).attr('data-coin');
var bg = "bg_"+coin;
$(".coin-type a").removeClass('active');
$(this).addClass('active');
$("#amount").removeClass('bg_btc bg_ltc');
$("#amount").addClass(bg);
cointocny()
select_info();
$("#address")[0].validform_valid="false"
$('.help-block').html('');
})
select_info();
var conaddr = $("#address").val()
if (conaddr !=""){
if(conaddr.substr(0,1) == "L"){
$(".coin-type a").eq(1).click();
}
$("#contacts .con_box").each( function(){
if (conaddr == $(this).attr("data-addr")){
$(this).click()
}
})
}
$("#amount").keyup(function(){
cointocny()
})
$('#immediate').change(function(){
if($('#immediate').prop("checked")){
var total_amount = $('#amount').val();
if(!check_amount()){
return false;
}
var ct = $(".coin-type .active").attr("data-coin");
var myaddr = $("#myaddr").val();
//console.log(myaddr)
var data = getData();
userData = $.parseJSON(data);
var sum = 0;
var u_cf = 0;
var cf = 0;
var option ='';
if(userData != null)
{
$.each(userData.addrs, function(i, item){
if(myaddr == ""){
var tx = item.tx[ct]["cf"];
sum = sum + getCoinSum(tx);
sum =sum + getCoinSum(item.tx[ct]["u_cf"]);
u_cf = u_cf + getCoinSum(item.tx[ct]["u_cf"]);
}else{
if(item.addr == myaddr){
var tx = item.tx[ct]["cf"];
sum = sum + getCoinSum(tx);
sum =sum + getCoinSum(item.tx[ct]["u_cf"]);
u_cf = u_cf + getCoinSum(item.tx[ct]["u_cf"]);
}
}
})
}
//console.log(sum)
//console.log(u_cf)
cf = sum - u_cf;
if(u_cf > 0){
if(parseInt(total_amount*100000000) > cf ){
$("#type_error").html("提示：您所要发送的比特币/莱特币包含未确认的交易，将无法使用即时到账功能。如果您需要立即发送，请取消即时到账选项！")
}else{
$("#type_tis").html("特别提示：只有收款方地址为 <span class='orange'>快钱包用户地址</span> 或 <span class='orange'>火币网充值地址</span>, 即时到账选项才会生效！")
}
}else{
$("#type_tis").html("特别提示：只有收款方地址为 <span class='orange'>快钱包用户地址</span> 或 <span class='orange'>火币网充值地址</span>, 即时到账选项才会生效！")
}
}else{
$("#type_error").html("")
$("#type_tis").html("")
}
})
});
function isfloat(oNum){
if(!oNum) return false;
var strP=/^(\d+(\.\d*)?|\.\d+)(\d+)?$/;
if(!strP.test(oNum)) return false;
try{
if(parseFloat(oNum)!=oNum) return false;
}catch(ex){
return false;
}
return true;
}
function cointocny(){
var num = $("#amount").val();
if(num > 0){
var ct = $(".coin-type .active").attr("data-coin");
var data = getData();
userData = $.parseJSON(data);
var coinnum = parseFloat(userData.ticker[ct]);
var cny = (num * coinnum).toFixed(2)
var intnum =parseInt(cny);
var floats =cny - intnum;
var floats = floats.toString();
var floatnum = floats.substr(2,2);
$("#int").html(intnum);
if(floatnum != 0){
$("#floatnum").html(floatnum);
}else{
$("#floatnum").html('00');
}
}else{
$("#int").html('0');
$("#floatnum").html('00');
}
}
function select_info(){
var data = getData();
var coin = '';
userData = $.parseJSON(data);
var ct = $(".coin-type .active").attr("data-coin");
if(ct == 'btc'){
coin = "BTC"
}else if(ct == 'ltc'){
coin = "LTC"
}
var sum = 0;
var option ='';
if(userData != null)
{
$.each(userData.addrs, function(i, item){
var tx = item.tx[ct]["cf"];
sum = sum + getCoinSum(tx);
sum =sum + getCoinSum(item.tx[ct]["u_cf"]);
var addrsum = getCoinSum(tx) + getCoinSum(item.tx[ct]["u_cf"]);
if(addrsum > 0){
option = option + '<option value="' + item.addr + '">' + item.addr +" - "+ getbtcvalue(addrsum) +" "+ coin + '</option>'
}
})
option = '<option value="">任意地址 - 总额' + " "+ getbtcvalue(sum) +" "+ coin + '</option>' + option
$("#myaddr").html(option)
var contacts = ''
$.each(userData.contacts[ct], function(i, item){
contacts = contacts + '<div title="'+item.addr+'" data-addr="'+item.addr+'" class="con_box">'+item.name+'</div>'
})
if(contacts == ""){
contacts = "<div class='nocontact'>暂无联系人</div>"
}
$("#contacts").html(contacts)
$(".con_box").click(function(){
var con_addr = $(this).attr("data-addr");
var con_word = $(this).text();
$("#address").val(con_addr);
var faddr = con_word+"<span class='ltgt'>&lt;"+con_addr+"&gt;</span>";
$(".raddr").html(faddr);
$(".right_box").show();
$("#tmpinput").focus()
$("#receive_error").html("")
})
//$(".raddr").html('');
//$(".right_box").hide();
$(".down_box").html("")
$(".down_box").hide()
}
}
//type 0: use old phone, 1: bind phone
function send_sms(type, phone_id){
var phone_num = "";
if(type == 1){
phone_num = $('#' + phone_id).val();
if(phone_num == ""){
tis("手机号码不能为空");
return false;
}
}
var res = false;
var params = {t:type, phone:phone_num, r:Math.random()};
params._xsrf = getCookie("_xsrf");
$.ajax({
type: "POST",
url: "/sms",
data : params,
dataType: 'json',
success: function(data){
if(data.result == 0){
tis(data.msg);
res = false;
}else{
res = true;
}
}
});
return res;
}
function time(o,id) {
if (o == 0) {
$("#check_box #"+id+"_re").show();
$("#check_box #"+id+"_box").hide();
} else {
$("#check_box #"+id+"_re").hide();
$("#check_box #"+id+"_box").show();
o--;
$("#check_box #"+id+"_time").html(o);
setTimeout(function() {
time(o,id)
},
1000)
}
}
function get_code(second,id){
/*获取验证码代码*/
time(second,id);
}
/*
$("#address").focus(function(){
get_addr();
})
*/
/*
function get_addr(){
if(window.localStorage){
var addrs = localStorage.addrs;
addrs = $.parseJSON(addrs);
var addr_option = "";
for(var i in addrs ){
addr_option = addr_option + '<option value="'+addrs[i]+'">'
}
$("#addr_list").html(addr_option)
}
}
*/
$(".right_box").click(function(){
$("#tmpinput").focus()
})
$("#tmpinput").keypress(function(event){
var currKey=0,e=e||event;
currKey=e.keyCode||e.which||e.charCode;
if(currKey != 8){
return false;
}
})
$("#tmpinput").keyup(function(event){
var currKey=0,e=e||event;
currKey=e.keyCode||e.which||e.charCode;
if(currKey == 8){
$("#address").val('');
$(".raddr").html('');
$(".right_box").hide();
$("#address").focus();
}else{
$("#tmpinput").val('');
}
})
$(".contact_dis").click(function(){
var dis = $(".contact_box").attr("data-dis")
$(".contact_box").toggle(200);
if(dis == "open"){
$(".contact_dis").animate({right:'0px'},200)
$(".contact_box").attr("data-dis","closed")
$(".contact_dis img").attr("src","static/images/dis_2.png")
}else if(dis == "closed"){
$(".contact_dis").animate({right:'180px'},200)
$(".contact_box").attr("data-dis","open")
$(".contact_dis img").attr("src","static/images/dis_1.png")
}
//alert (aaa);
})
$("#address").keyup(function(event){
var data = getData();
var coin = '';
userData = $.parseJSON(data);
var ct = $(".coin-type .active").attr("data-coin");
if(ct == 'btc'){
coin = "BTC"
}else if(ct == 'ltc'){
coin = "LTC"
}
if(userData != null)
{
var addr_word = $.trim($("#address").val());
var contacts = '';
var x = 0
$.each(userData.contacts[ct], function(i, item){
if($.trim(addr_word) != ""){
var name = item.name.search(addr_word)
var addr = item.addr.search(addr_word)
if(name > -1 || addr > -1){
if(x == 0){
var css = "saddr";
}else{
var css = "";
}
var newname = item.name.replace(addr_word,"<b>"+addr_word+"</b>");
var newaddr = item.addr.replace(addr_word,"<b>"+addr_word+"</b>");
contacts = contacts + '<div data-name="'+item.name+'" data-addr="'+item.addr+'" class="con_box_d '+css+'">"'+newname+'" &lt;'+newaddr+'&gt;</div>';
x++;
}
}
})
var count = $(".down_box .con_box_d").length;
if(count!=x){
if(contacts.length > 0){
$(".down_box").html(contacts)
$(".down_box").show()
$(".con_box_d").click(function(){
var con_addr = $(this).attr("data-addr");
var con_word = $(this).attr("data-name");
$("#address").val(con_addr);
var faddr = con_word+"<span class='ltgt'>&lt;"+con_addr+"&gt;</span>";
$(".raddr").html(faddr);
$(".down_box").html("")
$(".down_box").hide()
$(".right_box").show();
$(".down_box").html("")
$("#tmpinput").focus()
$("#receive_error").html("")
})
$(".con_box_d").mousemove(function(){
$(".con_box_d").removeClass("saddr")
$(this).addClass("saddr")
})
}else{
$(".down_box").html("")
$(".down_box").hide()
}
}
var currKey=0,e=e||event;
currKey=e.keyCode||e.which||e.charCode;
if(x > 1){
var saddr = $(".down_box .saddr");
if(currKey == 38){
if(typeof(saddr.prev().html()) != "undefined"){
saddr.prev().attr("class","con_box_d saddr");
saddr.attr("class","con_box_d");
}
}
if(currKey == 40){
if(typeof(saddr.next().html()) != "undefined"){
saddr.next().attr("class","con_box_d saddr");
saddr.attr("class","con_box_d");
}
}
}
if(currKey == 13){
$(".down_box .saddr").click()
}
}
})
$(function(){
$(document).bind("click",function(e){
var target = $(e.target);
if(target.closest(".down_box").length == 0){
$(".down_box").html("")
$(".down_box").hide();
}
})
})
</script>

</div>

<div class="container hidden-xs">
<div class="row" id="exchange">
<div><img src="./快钱包-付款_files/bit.png"></div><div class="num"><span>2058.54</span> CNY = 1 BTC</div>
</div>
</div>



<footer class="al-footer hidden-xs" role="contentinfo">
<div class="mini-logo-footer">
<a href="https://qianbao.qukuai.com/"><img src="./快钱包-付款_files/walle_logo_h.png"></a>
</div>
<p>© 2014 快钱包 All rights reserved</p>

<p id="lang" style="font-weight: 400;">
<a class="blue-a" href="https://quickwallet.com/">English Site</a>
</p>

<!--<p><a href="#">在线客服</a></p>-->
<p><a href="https://qianbao.qukuai.com/opinion">意见反馈</a></p>

<p><a href="https://qianbao.qukuai.com/media">媒体报道</a></p>

<p><a href="https://qianbao.qukuai.com/join">加入我们</a></p>
<p><a href="https://qianbao.qukuai.com/help">产品原理</a></p>
<p><a href="https://qianbao.qukuai.com/about">关于我们</a></p>
<div class="clearfix"></div>
<div class="clearfix"></div>
</footer>

<script>
$('.refresh').click(function(){
location.reload(true);
});
</script>
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F9c08bfebb788f173a32cb336dc5bd76e' type='text/javascript'%3E%3C/script%3E"));
</script><script src="./快钱包-付款_files/h.js" type="text/javascript"></script>
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-50021736-1', 'qukuai.com');
ga('send', 'pageview');
</script>


</body></html>